package cn.lili.controller.feign;

import cn.lili.modules.promotion.client.ReturnActivityGoodsClient;
import cn.lili.modules.promotion.entity.dos.ReturnActivityGoods;
import cn.lili.modules.promotion.service.ReturnActivityGoodsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
public class ReturnActivityGoodsFeignController implements ReturnActivityGoodsClient {
    private final ReturnActivityGoodsService returnActivityGoodsService;
    @Override
    public List<ReturnActivityGoods> getListByStoreId(String storeId) {
        return returnActivityGoodsService.getListByStore(storeId);
    }

    @Override
    public boolean isReturnActivityGoods(String goodsId) {
        return returnActivityGoodsService.isReturnActivityGoods(goodsId);
    }


}
